{% extends "devops/base.html" %}
<!-- 列表页固定信息 -->
{% block server_info %}<li><a href="server">服务器</a></li>{% endblock %}
{% block job_admin %}<li class="active"><a href="job">job管理</a></li>{% endblock %}
{% block user_info %}<li><a href="user">用户</a></li>{% endblock %}









<!-- 右侧栏信息-->
{% block txt_info %}
        <div class="span10">
            <div class="hero-unit">
                <div class="row-fluid">
                    <div class="pagination">
                        <table class="table table-bordered table-hover">
                        <thead>
                        <tr>
                        <th width="80">ID</th>
                        <th>状态</th>
                        <th>服务器</th>
                        <th>IP</th>
                        <th>端口</th>
                        <th>业务</th>
                        <th>负责人</th>
                        </tr>
                    <tbody>
                        {% for job_datas in job_data %}
                        <tr>
                        <td>{{ job_datas.id }}</td>
                        {% if job_datas.job_status == 0 %}
                        <td class="alert alert-success">在线</td>
                        {% else %}
                        <td class="alert alert-error">下线</td>
                        {% endif %}
                        <td>{{ job_datas.server_name }}</td>
                        <td>{{ job_datas.server_ip }}</td>
                        <td>{{ job_datas.server_port }}</td>
                        <td>{{ job_datas.job_work }}</td>
                        <td>{{ job_datas.job_owner }}</td>
                        </tr>
                        {% endfor %}
                        </thead>
                    </tbody>
                    </table>
                        <ul>
                            <li>
                            {% if job_data.has_previous %}
                                <a href="?page={{ job_data.previous_page_number }}">上一页</a>
                            {% endif %}
                            </li>

                            {% for u_list in plist %}
                                {% if u_list = page %}
                                <li class="active">
                                    <a href="?page={{ u_list }}">{{ u_list }}</a>
                                </li>
                                {% else %}
                                <li >
                                    <a href="?page={{ u_list }}">{{ u_list }}</a>
                                </li>
                                {% endif %}
                            {% endfor %}

                            <li>
                            {% if contacts.has_next %}
                                <a>...</a>
                                <a href="?page={{ contacts.next_page_number }}">下一页</a>
                            {% endif %}
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
      <hr>
      <footer>
        <p>&copy; Company 2014</p>
      </footer> 
    </div>
{% endblock %}
